<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>网页布局练习</title>
		<style>
			* {
				margin: 0;
				padding: 0;
			}
			li {
				list-style: none;
			}
			.header {
				width: 1000px;
				height: 120px;
				background-color: pink;
				margin: 0 auto;
				/* 开启弹性布局 */
				display: flex;
				justify-content: space-between;
			}
			.header div {
				width: 200px;
				height: 120px;
				background-color: lightblue;
			}
			.nav {
				width: 1000px;
				height: 40px;
				line-height: 40px;
				background-color: lightgreen;
				margin: 10px auto;
			}
			.nav ul {
				/* 开启弹性布局 */
				display: flex;
			}
			.nav ul li a {
				width: 90px;
				display: block;
				color: #666;
				text-decoration: none;
				text-align: center;
			}
			.nav ul li a:hover {
				background-color: #B90909;
				color: #fff;
			}
			.banner {
				width: 100%;
				height: 300px;
				background-color: orange;
				margin: 0 auto;
			}
			.container1, .container2 {
				width: 1000px;
				background-color: pink;
				margin: 10px auto;
				display: flex;
				justify-content: space-between;
			}
			.left1 {
				width: 300px;
				height: 300px;
				background-color: lightblue;
			}
			.right1 {
				width: 680px;
				height: 300px;
				background-color: lightgreen;
			}
			.container2 div {
				width: 240px;
				height: 250px;
				background-color: #ccc;
			}
			.footer {
				width: 1000px;
				height: 100px;
				background-color: lightgrey;
				margin: 0 auto;
			}
		</style>
	</head>
	<body>
		<!-- 头部 -->
		<div class="header">
			<div></div>
			<div></div>
		</div>
		<!-- 导航 -->
		<div class="nav">
			<ul>
				<li><a href="#">首页</a></li>
				<li><a href="#">关于汉唐</a></li>
				<li><a href="#">新闻中心</a></li>
				<li><a href="#">公司业务</a></li>
				<li><a href="#">企业文化</a></li>
				<li><a href="#">合作交流</a></li>
				<li><a href="#">招贤纳士</a></li>
				<li><a href="#">联系我们</a></li>
			</ul>
		</div>
		<!-- 轮播图 -->
		<div class="banner"></div>
		<!-- 主体1 -->
		<div class="container1">
			<div class="left1"></div>
			<div class="right1"></div>
		</div>
		<!-- 主体2 -->
		<div class="container2">
			<div></div>
			<div></div>
			<div></div>
			<div></div>
		</div>
		<!-- 页脚 -->
		<div class="footer"></div>
	</body>
</html>